//
//  ViewController.m
//  测试button封装
//
//  Created by 我演示 on 2019/11/11.
//  Copyright © 2019 ALLSall. All rights reserved.
//

#import "ViewController.h"
#import "FSLButton.h"
#import "UIButton+LAYOUT.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    FSLButton *btn = [ FSLButton buttonWithType:UIButtonTypeCustom];
    
    btn.frame = CGRectMake(100, 100, 280, 280);
    
    btn.backgroundColor = UIColor.redColor;
    
    [btn setImage:[UIImage imageNamed:@"button"] forState:UIControlStateNormal];
    
    [btn setTitle:@"在啊zaiuaiaifoakflakf" forState:UIControlStateNormal];
    [btn setTitleColor:UIColor.blackColor forState:UIControlStateNormal];
    [btn setLayoutWithEdgeInsetsStyle:ABSButtonEdgeInsetsStyleTop imageTitleSpace:60];
    [self.view addSubview:btn];
    
}


@end
